package com.kedacom.freedomLabel.view.fragment.setting;

import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.kedacom.freedomLabel.base.BaseFragment;
import com.kedacom.lego.fast.view.LegoFastViewModel;

/**
 * Author：李程
 * CreateTime：2020/3/21 20:41
 * E-mail：licheng@kedacom.com
 * Describe：
 */
public abstract class ASettingFragment<V extends ViewDataBinding, VM extends LegoFastViewModel> extends BaseFragment<V, VM> {

    public abstract void saveData();

    public abstract String getFragmentTitle();

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        saveData();
    }

}